package com.example.administrator.nl.activity.setting;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.example.administrator.nl.R;
import com.example.administrator.nl.activity.account.WithdrawalActivity;
import com.example.administrator.nl.base.BaseActivity;

import butterknife.BindView;

// 我的账户页面
public class MyAccountActivity extends BaseActivity {
    @BindView(R.id.iv_finish_my_account)
    ImageView iv_finish_my_account;

    // 充值
    @BindView(R.id.rl_recharge_my_account)
    RelativeLayout rl_recharge_my_account;

    // 提现
    @BindView(R.id.rl_withdrawal_my_account)
    RelativeLayout rl_withdrawal_my_account;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public int getContentView() {
        return R.layout.activity_my_account;
    }

    @Override
    public void init() {
        listener();
    }

    private void listener() {
        iv_finish_my_account.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        // 充值
        rl_recharge_my_account.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });


        // 提现
        rl_withdrawal_my_account.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MyAccountActivity.this, WithdrawalActivity.class);
                startActivity(intent);
            }
        });
    }
}
